package com.sphd.emanu.activity.financestaff;

import android.content.Context;

import com.sphd.emanu.mvp.BasePresenterImpl;
import com.sphd.emanu.pojo.bank.BankListInfo;

import java.util.List;

import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;

/**
 * MVPPlugin
 *  邮箱 784787081@qq.com
 */

public class FinancestaffPresenter extends BasePresenterImpl<FinancestaffContract.View> implements FinancestaffContract.Presenter{

    @Override
    public void financialManger(int oId) {
        emanuService.financialManger(oId).enqueue(new Callback<List<BankListInfo>>() {
            @Override
            public void onResponse(Call<List<BankListInfo>> call, Response<List<BankListInfo>> response) {
                mView.setListBean(response.body());
            }

            @Override
            public void onFailure(Call<List<BankListInfo>> call, Throwable t) {
                Error(t);
            }
        });
    }
}
